package com.mybatis.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.UpdateProvider;

import com.lanhai.model.Agv;


public interface AgvDao {
	
	@Select("select * from agv")
	List<Map<String, Object>> selectAll();
	
	@Select("select * from temp_agv")
	List<Map<String, Object>> selectTempData();

	@UpdateProvider(type=AgvSqlProvider.class, method="updateTempData")
	void updateTempData(Agv agv);
	
	@InsertProvider(type=AgvSqlProvider.class, method="insertTempData")
	void insertTempData(Agv agv);
	
	@InsertProvider(type=AgvSqlProvider.class, method="insertAgvData")
	void insertAgvData(Agv agv);
	
	
//    @SelectProvider(type=AgvSqlProvider.class, method="selectByMap")
//    List<Map<String, Object>> selectUserById(Map<String, Object> params);
//    
//    @UpdateProvider(type=AgvSqlProvider.class, method="updateById")
//    void updateById(User user);
}
